package org.xiaojl.xcloud.tools.gateway;

import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.xiaojl.xcloud.tools.gateway.accesslog.AccessLogDBKit;

/**  
 * <p>Title: ZuulServerApp</p>  
 *
 * <p>Description: 网关服务启动类</p>  
 *
 * @author jilong.xiao  
 * @date 2018年4月19日  
 */
@SpringBootApplication
@EnableZuulProxy
@EnableDiscoveryClient
public class ZuulServerApp {
	
	public static void main(String[] args) {
		new SpringApplicationBuilder(ZuulServerApp.class).web(true).run(args);
		System.err.println("--Zuul Server 启动成功--");
		//启动访问日志存库线程
		AccessLogDBKit.getInstance().start();
	}
	
}
